package com.zjk.toolkit.governance.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DoRateLimiter {

    /**
     * 限流阈值
     * @return
     */
    double limitPerSec() default 0D;

    String returnJson() default "";

}
